<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理 - 易买网</title>
<link type="text/css" rel="stylesheet" href="../css/style.css" />
<script type="text/javascript" src="../scripts/function-manage.js"></script>
</head>
<body>
<div class="main">
	<h2>修改商品</h2>
	<div class="manage">
		<form action="updateProductServlet" enctype="multipart/form-data" method="post">
			<table class="form">
				<tr>
					<%--	<td class="field">商品id: </td>--%>
					<td><input type="hidden" class="text" name="epid" value="${product.epid}" /></td>
				</tr>
				<tr>
					<td class="field">商品名称：</td>
					<td><input type="text" class="text" name="productName" value="${product.epname}" /></td>
				</tr>
				<tr>
					<td class="field">所属分类：</td>
					<td>
						<select name="parentId">
							<c:forEach items="${productCategoryList}" var="prodcat">
								<option value="${prodcat.epcid}">${prodcat.epcname}</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td class="field">商品描述：</td>
					<td><input type="text" class="text" name="picdec" /></td>
				</tr>
				<tr>
					<td class="field">商品图片：</td>
					<td><input type="file" class="text" name="photo" value="${epname.eppicturename}" /></td>
				</tr>
				<tr>
					<td class="field">商品价格：</td>
					<td><input type="text" class="text tiny" name="productPrice" value="${product1.price}" /> 元</td>
				</tr>
				<%--<tr>
                    <td class="field">品牌：</td>
                    <td><input type="text" class="text" name="productName" /></td>
                </tr>--%>
				<tr>
					<td class="field">库存：</td>
					<td><input type="text" class="text tiny" name="productNum" value="${product1.epstock}" /></td>
				</tr>
				<%--<tr>
                    <td class="field">条码号：</td>
                    <td><input type="text" class="text" name="productName" /></td>
                </tr>--%>
				<tr>
					<td></td>
					<td><label class="ui-blue"><input type="submit" name="submit" value="修改" /></label></td>
				</tr>
			</table>
		</form>
	</div>
</div>
</body>
</html>
